package com.server.mongodb.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 添加好友/群聊请求
 */
@Data
@Document("add_request")
public class MGAddRequest {

    private Long getUid; // 接收方
    private Long sendUid; // 发送添加请求方
    private Long groupBossUid; // 如果是群，群主uid
    private boolean isGroup; // 是否为添加群聊请求
    private boolean isRead; // 是否已读

    public MGAddRequest(Long getUid, Long sendUid, Long groupBossUid, boolean isGroup, boolean isRead) {
        this.getUid = getUid;
        this.sendUid = sendUid;
        this.groupBossUid = groupBossUid;
        this.isGroup = isGroup;
        this.isRead = isRead;
    }
}
